%%% -------------------------------------------------------------------
%%% Author  : HD
%%% Description :
%%%
%%% Created : 2008-1-21
%%% -------------------------------------------------------------------
-module(syncd_sup).

-behaviour(supervisor).
%% --------------------------------------------------------------------
%% Include files
%% --------------------------------------------------------------------

%% --------------------------------------------------------------------
%% External exports
%% --------------------------------------------------------------------
-export([start_link/0]).

%% --------------------------------------------------------------------
%% Internal exports
%% --------------------------------------------------------------------
-export([init/1]).

%% --------------------------------------------------------------------
%% Macros
%% --------------------------------------------------------------------
-define(SERVER, ?MODULE).

%% --------------------------------------------------------------------
%% Records
%% --------------------------------------------------------------------

%% ====================================================================
%% External functions
%% ====================================================================

%%
%% TODO: Add description of start_link/function_arity
%%
start_link() -> 
	supervisor:start_link({local,?MODULE},?MODULE,[]).


%% ====================================================================
%% Server functions
%% ====================================================================
%% --------------------------------------------------------------------
%% Func: init/1
%% Returns: {ok,  {SupFlags,  [ChildSpec]}} |
%%          ignore                          |
%%          {error, Reason}
%% --------------------------------------------------------------------
init([]) ->
    SyncDaemon = {sync_server,{sync_server,start_link,[]},
	      permanent,2000,worker,[sync_server]},
    {ok,{{one_for_one,10,1}, [SyncDaemon]}}.

%% ====================================================================
%% Internal functions
%% ====================================================================

